﻿@model int?
@{
	ViewBag.Title = "Фотоклуб прихожан";
}

<div id="content">
	@{ Html.RenderAction("Puzzles", new RouteValueDictionary { { "pageNumber", Model } }); }
</div>

<div id="pager">
	@{ Html.RenderAction("Pager", new RouteValueDictionary { { "pageNumber", Model } }); }
</div>

<script type="text/javascript">
	$(document).ready(function () {
		church.galleries.list.init({
			urls: {
				refreshGrid: '@(Url.Action<FotoClubController>(m => m.Puzzles(null)))',
				refreshPager: '@(Url.Action<FotoClubController>(m => m.Pager(null)))'
			}
		});
	});
</script>